<div class="topic">
	<div class="fl">Assine nossa Newsletter</div>
	<div class="clearB"></div>
</div>
<div style="padding: 20px 10px 0 0;">
	<form action="<?php echo url_for('terapiavital/assinarNewsletter'); ?>" 
	      method="post" name="form_newletter" id="form_newsletter">
		<table width="100%">
			<tr>
				<th><?php echo $form['ds_nome_list']->renderLabel(); ?>:</th>
				<td><?php echo $form['ds_nome_list']->render(array('size' => '35')); ?></td>
			</tr>
			<tr>
				<th><?php echo $form['ds_email_list']->renderLabel(); ?>:</th>
				<td><?php echo $form['ds_email_list']->render(array('size' => '35')); ?></td>
			</tr>
			<tr align="left">
				<td colspan="2" align="left">
					<?php 
						echo submit_tag(
							'Assinar',
							array('class'=>'buscarbotao curved5-topright curved5-bottomright')
						); 
					?>
					&nbsp;<span id="retornoNewsletter">
						<label style="display:none;" class="error" for="mailing_list_ds_nome_list">Campo nome obrigatório.</label>
						<label style="display:none;" class="error" for="mailing_list_ds_email_list"><br>Campo email obrigatório.</label>
					</span>
				</td>
			</tr>
		</table>
	</form>
</div>
<br /> 
<script type="text/javascript">
function retornoNewsletter(response) {
	$('#retornoNewsletter').html(response.success);
	return false;
}
$(function(){
	System.formdata.save(
		new Array('msgAlerta', 'Atenção'), 
		true,
		"retornoNewsletter(response);"
	);
});
</script>
